package org.dromara.system.domain.vo;

import org.dromara.system.domain.TQuestion;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 问题项视图对象 t_question
 *
 * @author Lion Li
 * @date 2024-10-27
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = TQuestion.class)
public class TQuestionVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 问题ID
     */
    @ExcelProperty(value = "问题ID")
    private Integer questionId;

    /**
     * 表单ID
     */
    @ExcelProperty(value = "表单ID")
    private Integer surveyId;

    /**
     * 问题描述
     */
    @ExcelProperty(value = "问题描述")
    private String questionText;

    /**
     * 问题类型
     */
    @ExcelProperty(value = "问题类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_question_type")
    private String questionType;

    /**
     * 是否必填
     */
    @ExcelProperty(value = "是否必填", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_if")
    private Integer required;

    /**
     * 排序值(越小越靠前)
     */
    @ExcelProperty(value = "排序值(越小越靠前)")
    private Integer orderIndex;


}
